﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BOM.entity
{
   public class Bom
    {
        private int id;   
        private int parentid ;   //父节点ID
        private int level;       //层级
        private bool isLeaf;     //是否叶子节点
        private String longNumber ; // 长编码
        private String partNumber;  //  
        private String partName;    //
        private String darawingNo; //
        private float naterialCost; //
        private float labourCost;   //
        private float totalCost;   //
        private String designer;   //
        private String version;    //
        private String component;  //
        private String material;   //
        private String supplier1;  //
        private String supplier2;  //
        private String supplyCycle; //
        private int type;
        private int qty;
        private float sumCost;


        public int getId()
        {
            return id;
        }
        public void setId(int idValue )
        {
            id = idValue;
        }
        public int getParentId()
        {
            return parentid;
        }
        public void setParentId(int value)
        {
            parentid = value;
        }

        public int getLevel()
        {
            return level;
        }
        public void setLevel(int value)
        {
            level = value;
        }

        public bool isleaf()
        {
            return isLeaf;
        }
        public void setIsLeaf(bool value)
        {
            isLeaf = value;
        }

        public String getLongNumber()
        {
            return longNumber;
        }
        public void setLongNumber(String value)
        {
            longNumber = value;
        }

        public String getPartNumber()
        {
            return partNumber;
        }
        public void setPartNumber(String value)
        {
            partNumber = value;
        }

        public String getPartName()
        {
            return partName;
        }
        public void setPartName(String value)
        {
            partName = value;
        }

        public String getDarawingNo()
        {
            return this.darawingNo;
        }
        public void setDarawingNo(String value)
        {
            darawingNo = value;
        }

        public float getNaterialCost()
        {
            return this.naterialCost;
        }
        public void setNaterialCost(float value)
        {
            this.naterialCost = value;
        }

        public float getLabourCost()
        {
            return this.labourCost;
        }
        public void setLabourCost(float value)
        {
            this.labourCost = value;
        }

        public float getTotalCost()
        {
            return this.totalCost;
        }
        public void setTotalCost(float value)
        {
            this.totalCost = value;
        }

        public String getDesigner()
        {
            return this.designer;
        }
        public void setDesigner(String value)
        {
            this.designer = value;
        }

        public String getVersion()
        {
            return this.version;
        }
        public void setVersion(String value)
        {
            this.version = value;
        }

        public String getComponent()
        {
            return this.component;
        }
        public void setCompenent(String value)
        {
            this.component = value;
        }

        public String getMaterial()
        {
            return this.material;
        }
        public void setMaterial(String value)
        {
            this.material = value;
        }

        public String getSupplier1()
        {
            return this.supplier1;
        }
        public void setSupplier1(String value)
        {
            this.supplier1 = value;
        }

        public String getSupplier2()
        {
            return this.supplier2;
        }
        public void setSupplier2(String value)
        {
            this.supplier2 = value;
        }

        public String getSupplyCycle()
        {
            return this.supplyCycle;
        }
        public void setSupplyCycle(String value)
        {
            this.supplyCycle = value;
        }
        public int getType()
        {
            return type;
        }
        public void setType(int value)
        {
            type = value;
        }

        public int getQty()
        {
            return qty;
        }
        public void setQty(int value)
        {
            qty = value;
        }
        public float getSumCost()
        {
            return sumCost;
        }
        public void setSumCost(float value)
        {
            sumCost = value;
        }
    }
}
